package com.flyee.communicate.character{
	
	import com.flyee.communicate.Handler;
	import com.flyee.io.socket.command.down.CommandDown;
	import com.flyee.ro.commanddown.SkillSingleDown;
	import com.flyee.service.pool.ObjectCollection;
	import com.flyee.utils.Obsevable;

	public class SkillSingleHandler extends Obsevable implements Handler{
		
		public function SkillSingleHandler(){
			super();
		}
		
		public function process(cmd:CommandDown) : void {
			var command : SkillSingleDown = cmd as SkillSingleDown;
			setChanged();	        
	        notifyObsevers("executeSkill"
					        , command.sourceId
					        , command.targetId
					        , parseInt(command.skillId)
					        , command.damage);
		}
		
	}
}